/**
 * 
 * Proyecto X Tecnologia de programacion  2do cuatrimestre de 2012
 * @author
 * German Rickert LU: 93284
 * Maximiliano Tiberi LU: 83600
 * Sebastian Larrieu LU: 94056
 */
 
package grafica;

import javax.swing.Icon;
import javax.swing.ImageIcon;

@SuppressWarnings("serial")
public class CapcomGrafico extends RepresentacionGrafica
{
	//constructor
	public CapcomGrafico()
	{
		super();
	}
	
	//Metodos para cargar las imagenes de un personaje en el arreglo
	public void cargarStriderHiryu()
	{
		Icon img1,img2,img3;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/striderHiryu/striderHiryu-walk.gif"));
		agregarImagen(img1,0);
		img2= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/striderHiryu/striderHiryu-hit.gif"));
		agregarImagen(img2,1);
		img3= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/striderHiryu/striderHiryu-walk.gif"));
		agregarImagen(img3,2);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
	
	public void cargarZangief()
	{
		Icon img1,img2;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/zangief/zangief-walk.gif"));
		agregarImagen(img1,0);
		img2= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/zangief/zangief-hit.gif"));
		agregarImagen(img2,1);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
	
	public void cargarRyu()
	{
		Icon img1,img2;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/ryu/ryu-walk.gif"));
		agregarImagen(img1,0);
		img2= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/ryu/ryu-hit.gif"));
		agregarImagen(img2,1);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
	
	public void cargarMegaMan()
	{
		Icon img1,img2,img3;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/megaman/megaman-walk.gif"));
		agregarImagen(img1,0);
		img2= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/megaman/megaman-hit.gif"));
		agregarImagen(img2,1);
		img3= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/megaman/megaman-bola.gif"));
		agregarImagen(img3,2);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
	
	public void cargarBlanka()
	{
		Icon img1,img2;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/blanka/blanka-walk.gif"));
		agregarImagen(img1,0);
		img2= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/blanka/blanka-hit.gif"));
		agregarImagen(img2,1);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
	
	public void cargarMiniBlanka()
	{
		Icon img1,img2;
		img1= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/MiniBlanka/MiniBlanka-walk.gif"));
		agregarImagen(img1,0);
		img2= new ImageIcon(this.getClass().getClassLoader().getResource("recursos/capcoms/MiniBlanka/MiniBlanka-hit.gif"));
		agregarImagen(img2,1);
		this.setIcon(this.getImagenActual());
		this.setSize(img1.getIconWidth(), img1.getIconHeight());
	}
}
